package com.alibaba.dubbo.demo.provider;

import java.util.List;

import com.alibaba.dubbo.demo.ClassNameInterface;
import com.alibaba.dubbo.demo.bean.ClassName;
import com.alibaba.dubbo.demo.bean.PageBean;
import com.alibaba.dubbo.demo.provider.dao.impl.ClassNameDaoImpl;

public class ClassNameServiceImpl implements ClassNameInterface {

	ClassNameDaoImpl classNameDao;
	public ClassNameDaoImpl getClassNameDao() {
		return classNameDao;
	}

	public void setClassNameDao(ClassNameDaoImpl classNameDao) {
		this.classNameDao = classNameDao;
	}

	@Override
	public boolean saveClassName(ClassName item) {
		// TODO Auto-generated method stub
		return classNameDao.saveClassName(item);
	}

	@Override
	public boolean updateClassName(ClassName item) {
		// TODO Auto-generated method stub
		return classNameDao.updateClassName(item);
	}

	@Override
	public boolean deleteClassName(ClassName item) {
		// TODO Auto-generated method stub
		return classNameDao.deleteClassName(item);
	}

	@Override
	public boolean setClassNameValid(long id, int valid) {
		// TODO Auto-generated method stub
		return classNameDao.setClassNameValid(id, valid);
	}

	@Override
	public PageBean queryAllClassName(PageBean pageBean, ClassName item) {
		// TODO Auto-generated method stub
		return classNameDao.queryAllClassName(pageBean, item);
	}

	@Override
	public List<ClassName> queryAllClassNameList(ClassName item) {
		// TODO Auto-generated method stub
		return classNameDao.queryAllClassNameList(item);
	}

	@Override
	public ClassName queryOneClassName(long id) {
		// TODO Auto-generated method stub
		return classNameDao.queryOneClassName(id);
	}
}
